ts programming tips